package ferp.center.network;

import ferp.core.card.Card;
import ferp.core.game.Bid;

/**
 * User: igorgok
 * Date: 12/5/12 9:36 AM
 */
public class RequestWhistAdd
{
  public static final char UNKNOWN    = '?';
  public static final char NONE       = '-';
  public static final char PASS       = '*';
  public static final char WHIST_FULL = 'W';
  public static final char WHIST_HALF = 'H';

  public static char type(Bid.Type t)
  {
    switch (t)
    {
      case PASS:       return RequestWhistAdd.PASS;
      case WHIST:      return RequestWhistAdd.WHIST_FULL;
      case HALF_WHIST: return RequestWhistAdd.WHIST_HALF;
    }

    return UNKNOWN;
  }

  // profile ID
  public long profile;
  // configuration
  public String configuration;
  // hand in game
  public int hand;
  // cards in hand
  public int cards;
  // contract tricks
  public int tricks;
  // contract suit
  public Card.Suit trump;
  // whist result
  public char result;
  // player's accumulated pool in the specified configuration
  public long pool;
  // player's score in the specified configuration
  public long score;
}
